package h2k.web.dao;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class BoardDao {
	
	private SqlMapClientTemplate smct;
	
	@Autowired
	public void init(SqlMapClient sqlMapClient){
		smct = new SqlMapClientTemplate(sqlMapClient);
	}
	
	public List<Map<String, Object>> getData(){
		return smct.queryForList("member.getContents");
	}
	
}
